#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QtGui>
#include <client/fieldwidget.h>
#include <core/config.h>
#include <game/tkeyboardcontroller.h>
#include <network/tclientthread.h>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    void keyPressEvent( QKeyEvent * event);
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

public slots:
    void connectionLost();

private:
    Ui::MainWindow      *ui;
    QTimer              *timer;
    FieldWidget         *gameField;
    TKeyboardController *controller;
    TClientThread       *thread;
};

#endif // MAINWINDOW_H
